<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Insert title here</title>
	<link rel="stylesheet" type="text/css" href="css/user_css.css">
	
		
</head>
<body>

<div id="wrap">
	<div id="header">
	    <jsp:include page="/menu.jsp"/>
	</div>
	
	<div id="centerCon">
	<form:form commandName="memberVO" name="listForm" method="post">
	<input type="hidden" name="selectedId" value="${member_list.name }" />
	
	<br><br><br><br>
	<center>
	<fieldset>
	  	<legend>이름으로 검색하기</legend>
		   <font size="2" color="red">${requestScope.error_message }</font><br>
		   <table border="0" style="width:200px;"> 
		       <form action="/${initParam.context_root }/searchMemberByName.do" method="post" name="name_search_form" onsubmit="return nameSearchFormCheck()">
		       <tr>
		            <td  align="center" bgcolor="#CCCCCC" style="width:50px;"> 이름 </td>
		            <td> <input type="text" style="width:80px;"  name="name" value= ${requestScope.search_value } > </td>
		            <td  align="center"> <input type="submit" value="검색"> </td>
		       </tr>  
		       <tr>
		          <td colspan="3">&nbsp;&nbsp;</td>
		       </tr>
		       </form>   
		   </table>
	</fieldset>
			
	   <br>
		<table width="500" border="1" cellspacing="0">
			<tr align="center">
				 <td>순번</td>
				 <td>아이디</td>
				 <td>이름</td>
				 <td>주민번호</td>
			</tr>
			<c:forEach  items="${requestScope.searchList }" var="member_list" varStatus="cnt">
			<tr align="center">
				 <td>${cnt.count }</td>
				 <td>${member_list.id }</td>
				 <td>
				       <%--  ${member_list.name } --%>
				       <a href="/${initParam.context_root }/searchmemberbyID.do?selectedId=${member_list.id }">${member_list.name }</a>
				    
				 </td>
				 <td>${member_list.registerNumber1 }-${member_list.registerNumber2 }</td>
			</tr>
			</c:forEach>
	
		</table>
	    </center>
	</div>
	
	<div id="footer">
		<jsp:include page="/footer.jsp"></jsp:include>   
	</div>
</div>	


</body>
</html>
